import axios from '../util/axios'
export function getRoleList(params){
  return axios({
    url:'/admin/roles',
    method:'GET',
    params
  })
}

export function addRole(params){
  return axios({
    url:'/admin/addRole',
    method:'POST',
    params
  })
}

export function editRole(params){
  return axios({
    url:'/admin/editRole',
    method:'PUT',
    params
  })
}

export function deleteRole(params){
  return axios({
    url:'/admin/deleteRole',
    method:'DELETE',
    params
  })
}

export function editRoleAuth(params){
  return axios({
    url:'/admin/editRoleAuth',
    method:'PUT',
    params
  })
}
